import 'package:banyou_app/app/config/colors.dart';
import 'package:banyou_app/app/widget/login_button.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

class CaoZuoWidget extends StatelessWidget {
  final bool isLahei;
  const CaoZuoWidget(this.isLahei,{Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      decoration: BoxDecoration(
        color: ColorConfig.white,
        borderRadius: BorderRadius.vertical(top: Radius.circular(34)),
      ),
      width: 1.sw,
      height: 300,
      padding: EdgeInsets.symmetric(horizontal: 28),
      child: Column(
        children: [
          SizedBox(height: 70),
          Row(
            children: [
              if(isLahei==false)
              InkWell(
                onTap: () {
                  Get.back(result: 1);
                },
                child: Column(
                  children: [
                    Image.asset('assets/images/组 60@2x.png', width: 64),
                    SizedBox(height: 10),
                    Text('拉黑',
                        style: TextStyle(
                            color: ColorConfig.text_label, fontSize: 16.sp))
                  ],
                ),
              ),
              SizedBox(width: 50),
              InkWell(
                onTap: () {
                  Get.back(result: 2);
                },
                child: Column(
                  children: [
                    Image.asset('assets/images/组 61@2x.png', width: 64),
                    SizedBox(height: 10),
                    Text('举报',
                        style: TextStyle(
                            color: ColorConfig.text_label, fontSize: 16.sp))
                  ],
                ),
              ),
              Spacer()
            ],
          ),
          SizedBox(height: 42),
          LoginButton(
            '取消',
            onPressed: () {
              Get.back();
            },
          ),
          SizedBox(height: 42),
        ],
      ),
    );
  }
}
